package org.jeecg.modules.zhima.portal.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.zhima.admin.entity.ZmPlayerRanking;
import org.jeecg.modules.zhima.portal.domain.PlayerRanking;

import java.util.List;

public interface IPlayerRankingService {

    IPage<PlayerRanking> page(Page<ZmPlayerRanking> page, QueryWrapper<ZmPlayerRanking> query);

    List<PlayerRanking> home();

    List<ZmPlayerRanking> list(List<String> payerIds);

    boolean updateById(ZmPlayerRanking entity);

    boolean save(ZmPlayerRanking entity);

    ZmPlayerRanking getByPlayerId(String playerId);

    /**
     * 计算跑明
     * @return
     */
    boolean calculate();
}
